<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div span {
            font-size: 12px;
            padding: 3px 5px;
            margin-left: 5px;
            /* 保证边框的颜色和字体颜色始终保持一致 currentColor*/
            border: 1px solid currentColor;
            border-radius: 2px;
            color: #666;
        }

        .zy {
            color: red;
        }

        .blqs {
            color: green;
        }
    </style>
</head>

<body>
    <div>
        <span class="zy">自营</span>
        <span class="blqs">博览群书</span>
        <span style="color: indigo;">你好</span>
        <span style="color: indianred;">Hi</span>
    </div>
</body>

</html>